// import axios from "axios"
import request from "../utils/request";
// 1.登录API LoginApi是一个api
export const LoginApi = ({username,password})=>{
    return request.post("/auth/login",{
        username,
        password,
    });
};

// 退出登录
export const logoutApi = () => request.post("/auth/logout");

// 获取用户信息
export const getUserInfoApi = () => request.get("/users/profile");

